﻿<?php if(!isset($_SESSION)) @session_start();?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php include("header.html");?>

<link href="css/facebook div styles.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" type="text/css" rel="stylesheet">
<link href="css/myStyle.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/mystyle.css" />

<link href="css/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery.watermarkinput.js"></script>
<script type="text/javascript">
$(document).ready(function(){
						   
$(".search").keyup(
function() 
{
	var searchbox = $(this).val();
	var dataString = 'searchword='+ searchbox;

	if(searchbox=='')
	{
		$("#display").css("display","none");
	}
	else
	{
		$.ajax({
		type: "POST",
		url: "search.php",
		data: dataString,
		cache: false,
		success: function(html)
		{
			if(html=="")
			$("#display").css("display","none");
			else
			$("#display").html(html).show();
		}
	});
}return false;    
});
});
jQuery(function($){
   $("#searchbox").Watermark("Search");
   $("#searchbox").blur(function(){
        $("#display").css("display","none");
      });
   });
</script>

<style type="text/css">

/*#searchbox
{
width:182px;
height:10px;
padding:3px;
margin-top:0px;
margin-right:3px;
}*/
#display
{
	position:absolute;
	width:192px;
	float:right;
	right:2px;
	border-color:#333333 #333333 #293E6A;
	border-style:solid;
	border-width:1px 1px 1px;
	overflow:hidden;
	padding-right:0px;
	display:none;
}
.display_box
{	
	width:192px;
	background:none repeat scroll 0 0 #FFFFFF;
	overflow:hidden;
	padding:2px 0;
	border-top:solid 1px #dedede; 
	font-size:12px; 
	height:50px;
	color:#3B5998;
	padding-right:0px;
	margin-right:0px;
}

.display_box:hover
{
background:#6D84B4;
color:#FFFFFF;
}
#shade
{
background-color:#00CCFF;

}
</style>
<?php 
$ok="false";

?>
<?php

if($ok=="true")
{
	$js='<script>$(document).ready(function() {';
	$js=$js.'$( "#tabs" ).tabs( { cache: true } );';
	$js=$js.'$( "#tabs" ).tabs( { selected: 1 } );});';
	$js=$js.'function gListForm(){document.forms["listGame"].submit();}</script>';
	echo $js;
}else{
	
	$js='<script>$(document).ready(function() {';
	$js=$js.'$( "#tabs" ).tabs( { cache: true } );';
	$js=$js.'$("#tabs").tabs();});';
	$js=$js.'function gListForm(){document.forms["listGame"].submit();}</script>';
	echo $js;
}
?>

<body>
<div id="header" style="margin-top:-17px;">
	<?php include("header.php");?>
</div>

<div id="contentArea" style="height:100%;">
	<?php include("leftSideMenu.html");?>
	<div style="width:820px;float:left;margin-top:10px;margin-left:10px;">
	<?php 
	if(isset($_SESSION["user_name"])){
		$userid=$_SESSION["userId"];
		include("profileContent.php");
	}else{
		echo '<div  class="fb5" style="margin-top:50px;">Bu özelliği kullanmak için önce <a href="login.php">giriş</a> yapmalısınız!</div>';
	}?>
	</div>
</div>
<div id="footer"><?php include("footer.php");?></div>
</body>
</html>
